home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
COMMADIO
/
ROBOCOM1.LZH
/
ROBOCOM1.EXE
/
TESTFILE.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-02-12
|
711b
|
39 lines
ECHO OFF
CLS
REM TESTFILE.BAT - Robocomm file testing batch file
REM %1 = Filename (Including Path)
REM %2 = Type of file (The file's extension)
rd robotemp
md ROBOTEMP>nul
cd ROBOTEMP
IF %2 == ZIP GOTO UNZIP
IF %2 == LZH GOTO UNLZH
IF %2 == ARC GOTO UNARC
GOTO ERROR
:UNZIP
PKUNZIP %1
GOTO DONE
:UNARC
PKUNPAK %1
GOTO DONE
:UNLZH
LHARC x %1
GOTO DONE
:ERROR
CLS
ECHO %1 IS AN UNKNOWN FILE TYPE
ECHO (You may want to edit your TESTFILE.BAT file)
ECHO Parameter 1 was [%1]
ECHO Parameter 2 was [%2]
ECHO
pause
GOTO END
:DONE
REM Use McAfee's viral scan to test the file for critters
CLS
SCAN *.* /A /nomem
pause
PROMPT Type EXIT to return to Robocomm$_$P$G
%COMSPEC%
:END